package com.njit.farm.dataobject;

import com.njit.farm.model.ReapedPlant;

import java.util.Date;

public class FReapedPlant {
    private String rpId;

    private String rpTag;

    private Date rpTime;

    private Integer rpNum;

    private String uId;

    private String rpState;

    public String getRpId() {
        return rpId;
    }

    public void setRpId(String rpId) {
        this.rpId = rpId;
    }

    public String getRpTag() {
        return rpTag;
    }

    public void setRpTag(String rpTag) {
        this.rpTag = rpTag;
    }

    public Date getRpTime() {
        return rpTime;
    }

    public void setRpTime(Date rpTime) {
        this.rpTime = rpTime;
    }

    public Integer getRpNum() {
        return rpNum;
    }

    public void setRpNum(Integer rpNum) {
        this.rpNum = rpNum;
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public String getRpState() {
        return rpState;
    }

    public void setRpState(String rpState) {
        this.rpState = rpState;
    }


    public ReapedPlant toModel(){
        ReapedPlant reapedPlant = new ReapedPlant();
        reapedPlant.setId(this.rpId);
        reapedPlant.setNum(this.rpNum);
        reapedPlant.setReapTime(this.rpTime);
        reapedPlant.setState(this.rpState);
        reapedPlant.setTag(this.rpTag);
        reapedPlant.setuId(this.uId);
        return reapedPlant;
    }
}